// Copyright 2021 Guoyoko. All Rights Reserved.


#include "SWLevelEditorToolBar.h"
#include "SSWLevelEidtor.h"
#include "SWLevelEditorCommands.h"
#include "Style/SWCoreStyle.h"


TSharedRef<SWidget> FSWLevelEditorToolBar::MakeLevelEditorToolBar(const TSharedRef<FUICommandList>& InCommandList)
{

	FToolBarBuilder RealtimeWatchingToolBar(InCommandList, FMultiBoxCustomization::None);

	RealtimeWatchingToolBar.AddToolBarButton
	(
		FSWLevelEditorCommands::Get().ScreenShot,
		NAME_None,
		TAttribute<FText>(),
		TAttribute<FText>(),
		FSlateIcon(FSWCoreStyle::Get().GetStyleSetName(), "HighresScreenshot.Capture")
	);

	return RealtimeWatchingToolBar.MakeWidget();
}

